<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改学生信息查询')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-student-edit" th:object="${dataStudent}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">学生姓名：</label>
                <div class="col-sm-8">
                    <input name="studentName" th:field="*{studentName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所在校区：</label>
                <div class="col-sm-8">
                    <input name="schoolDistrict" th:field="*{schoolDistrict}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">学校名称：</label>
                <div class="col-sm-8">
                    <input name="schoolName" th:field="*{schoolName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">学生证件码：</label>
                <div class="col-sm-8">
                    <input name="studentSfzh" th:field="*{studentSfzh}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">学生住址：</label>
                <div class="col-sm-8">
                    <textarea name="studentAddress" class="form-control">[[*{studentAddress}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">学生年级：</label>
                <div class="col-sm-8">
                    <input name="studentGrade" th:field="*{studentGrade}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">社会关系：</label>
                <div class="col-sm-8">
                    <input name="relationship1" th:field="*{relationship1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关系人：</label>
                <div class="col-sm-8">
                    <input name="partyName1" th:field="*{partyName1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关系人证件码：</label>
                <div class="col-sm-8">
                    <input name="partySfzh1" th:field="*{partySfzh1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关系人联系方式：</label>
                <div class="col-sm-8">
                    <input name="partyLxfs1" th:field="*{partyLxfs1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">关系住址：</label>
                <div class="col-sm-8">
                    <textarea name="partyAddress1" class="form-control">[[*{partyAddress1}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">社会关系：</label>
                <div class="col-sm-8">
                    <input name="relationship2" th:field="*{relationship2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关系人：</label>
                <div class="col-sm-8">
                    <input name="partyName2" th:field="*{partyName2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关系人证件码：</label>
                <div class="col-sm-8">
                    <input name="partySfzh2" th:field="*{partySfzh2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关系人联系方式：</label>
                <div class="col-sm-8">
                    <input name="partyLxfs2" th:field="*{partyLxfs2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">关系住址：</label>
                <div class="col-sm-8">
                    <textarea name="partyAddress2" class="form-control">[[*{partyAddress2}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="bz" class="form-control">[[*{bz}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "dataInfo/student";
        $("#form-student-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-student-edit').serialize());
            }
        }
    </script>
</body>
</html>